package com.ledim.adapter;

import android.app.Activity;
import com.ledim.bean.LedimCardGroupBean;
import com.ledim.utils.LedimBaseUtils;
import com.ledim.utils.LedimViewHolder;

/**
 * Created by ccx on 16/7/27.
 * 首页卡片adapter类
 */
public abstract class CarGroupBaseAdapter {

    protected Activity mActivity;
    protected int mScreenWith = 0;
    protected LedimCardGroupBean mCardGroupBean;

    public CarGroupBaseAdapter(Activity activity, LedimCardGroupBean cardGroup) {
        mActivity = activity;
        mScreenWith = LedimBaseUtils.getScreenWidthIntPx();
        this.mCardGroupBean = cardGroup;
    }

    public abstract void initView(LedimViewHolder viewHolder);

}
